package com.zzj.service.impl;

import com.zzj.bean.PowerBean;
import com.zzj.dao.PowerDao;
import com.zzj.service.PowerService;
import com.zzj.utils.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class PowerServiceImpl implements PowerService {

    @Resource
    private PowerDao pdao;

    @Override
    public Result returnOnePowerListTree(Integer uid) {
//      根据员工爱滴查询其所有权限
        List<PowerBean> powers = pdao.quePowerByperId(uid);
        Result<List> result = new Result<>(
                true,20000,"查询成功",powers);
        return result;
    }
}
